package com.xqboss.apps.dto.synthesis;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Administrator
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "合成活动-方案", description = "出入参数")
public class WebSynthesisPlanDelDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "方案id")
    @NotNull(message = "方案id不可为空")
    private Long id;

    @ApiModelProperty(value = "修改类型[1:方案;2:消耗;3:结果]")
    @NotNull(message = "修改类型不可为空")
    @Min(value = 1,message = "修改类型不合法")
    @Max(value = 3,message = "修改类型不合法")
    private Integer updateType;

    @ApiModelProperty(value = "消耗id或合成结果id")
    @NotNull(message = "消耗id或合成结果id不可为空")
    private Long detailId;
}
